function ajaxFunction(id){
    var xmlHttp;
    if(window.XMLHttpRequest){
        // IE7+, Firefox, Chrome, Opera, Safari
        xmlHttp = new XMLHttpRequest;
    }
    else if(window.ActiveXObject){
        // IE6, IE5
        xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
    }
    
    xmlHttp.onreadystatechange = function(){
        if(xmlHttp.readyState == 4){
            document.getElementById('clsp').innerHTML = xmlHttp.responseText;
        }
    }
    xmlHttp.open('GET', 'action.php?dmid='+id, true);
    xmlHttp.send(null);
}